import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import test from '@/components/test'
import Counselor from '@/components/Counselor'
import DocumentaryCheck from '@/components/DocumentaryCheck'
import VueResource from '../../node_modules/vue-resource/dist/vue-resource'
import ScienceCheck from '@/components/scienceCheck'
import Mutual from '@/components/mutual'
import Grade from '@/components/grade'
import ScienceCommit from '@/components/ScienceCommit'
import DocumentaryCommit from '@/components/DocumentaryCommit'
import Yiban from '@/components/Yiban'
import pubDocumentary from '@/components/PubDocumentary'
import HeaderTeacherIndex from '@/components/HeaderTeacherIndex'
import LifeTeacherMutual from '@/components/LifeMutual'

Vue.use(Router)
Vue.use(VueResource)



export default new Router({
  routes: [
    {
      path: '/',
      name: 'Hello',
      component: Hello
    },
    {
      path: '/test',
      name: 'Test',
      component: test
    },
    {
      path: '/counselor',
      name: 'counselor',
      component: Counselor
    },
    {
      path: '/documentaryCheck',
      name: 'documentaryCheck',
      component: DocumentaryCheck
    },
    {
      path: '/scienceCheck',
      name: 'scienceCheck',
      component: ScienceCheck
    },
    {
      path: '/mutual',
      name: 'mutual',
      component: Mutual
    },
    {
      path: '/grade/:id',
      name: 'grade',
      component: Grade
    },
    {
      path: '/scienceCommit',
      name: 'scienceCommit',
      component: ScienceCommit
    },
    {
      path: '/documentaryCommit',
      name: 'documentaryCommit',
      component: DocumentaryCommit
    },
    {
      path: '/yiban',
      name: 'Yiban',
      component: Yiban
    },
    {
      path: '/pubDocumentary',
      name: 'pubDocumentary',
      component: pubDocumentary
    },
    {
      path: '/headerteacherIndex',
      name: 'headerteacherIndex',
      component: HeaderTeacherIndex
    },
    {
      path: '/lifeTeacherMutual',
      name: 'LifeTeacherMutual',
      component: LifeTeacherMutual
    },
    {
      path: '*',
      redirect:'/'
    }
  ]
})
